import request from '@/utils/http.js'

// 动态获取小区信息
export function getArea (type, data) {
  return request({
    url: `/sys/${type}/list/all`,
    method: 'get',
    params: {
      ...data
    }
  })
}

// 修改密码
export function updatePwd (data) {
  return request({
    url: '/sys/user/password',
    method: 'post',
    data
  })
}
